package com.bestcem.xm.member.grpc.service.param.member;

import com.bestcem.xm.common.core.constant.RegTypes;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 邮箱校验 参数校验
 *
 * @author yf.wang <yf.wang@idiaoyan.com>
 * @version V1.0
 * @date 2021/7/19
 */
@Getter
@Setter
public class ValidateEmailParam {

    /**
     * 组织ID
     */
    @NotNull(message = "组织ID不能为空")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "组织ID格式错误")
    private String orgId;

    @NotNull(message = "联系人类型不能为空")
    private Integer attribute;

    @NotNull(message = "邮箱不能为空")
    private String email;

}
